package learn.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @version 1.0
 * @author: YU.TAN
 * @date: 2023/7/16 16:11
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)      //开启链式写法 已测试过
public class UserVO {
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("年龄")
    private Integer age;

    public UserVO(String userName, Integer age) {
        this.userName = userName;
        this.age = age;
    }
}
